package com.sishu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sishu.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface RoleMapper extends BaseMapper<Role> {


    @Select("select * from role where level = #{level}")
    List<Role> selectRoleBylevel(int level);

    @Select("select * from role where role_id = #{roleId}")
    Role selectRoleByroleId(int roleId);

    @Select("select * from role")
    List<Role> selectall();
}
